const express = require('express')
const bodyParser = require('body-parser')

var server = express()
server.listen(8080)

//解析POST 需要中间件
server.use(bodyParser.urlencoded({
    extended: false ,   //扩展模式
    limit: 2*1024       //限制-2k
}))

//解析POST req.body
server.use('/',(req,res)=>{
    console.log(req.body)  
})